<?php

namespace App\Repositories;

use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\StatusPayRecordRepository;
use App\Models\StatusPayRecord;
use App\Validators\StatusPayRecordValidator;

/**
 * 仓储_订单支付状态变更记录
 * Class StatusPayRecordRepositoryEloquent
 * @package namespace App\Repositories;
 * @author ^2_3^岑业宝
 */
class StatusPayRecordRepositoryEloquent extends BaseRepository implements StatusPayRecordRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return StatusPayRecord::class;
    }

    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }
}
